<?php

	
	class DelegateClass {
		var $classname;
		var $params;
		function DelegateClass($classname){
			$this->classname=$classname;
			$params = func_get_args();
			unset($params[0]);
			$this->params=$params;
		}
		function invoke(){
			eval("\$c = new ".$this->classname."(".quote($this->params).");");
			return $c; 
		}
	}
	
	
?>